<template>
    <div class="container">
        <div class="box" v-loading="loading">
            <div class="stepBox"><Step /></div>
            <div class="form"><FormHouse /></div>
        </div>
    </div>
</template>

<script type="text/javascript">
import Step from "./components/Step.vue"
import FormHouse from "./components/FormHouse.vue"
import eventBus from "../../utils/eventBus"
export default {
    data() {
        return {
            loading: false
        }
    },
    components: {
        Step,
        FormHouse,
    },
    methods: {},
    mounted() {
        eventBus.$on('manage', ()=> {
            this.loading = true
            setTimeout(() => {
                this.loading = false
                this.$router.push('/').catch(err => err)
            }, 2000)
        })
    },
}
</script>

<style lang="less" scoped>
.el-main {
    height: 100%;
}
.container {
    width: 100%;
    height: 100%!important;
    padding: 24px;
    background: #e9f1f7;
    .box {
        width: 100%;
        height: 100%;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 0 6px 2px rgba(93, 92, 92, 0.3);
        .stepBox {
            width: 240px;
            height: 100px;
            margin: 0 auto 40px;
            padding-top: 50px;
        }
        .form {
            width: 390px;
            height: 300px;
            // background: pink;
            margin: 0 auto;
        }
    }
}
</style>
